package com.dengyuanke.upms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dengyuanke.upms.domain.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author dengyuanke
 * @since 2019-06-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
public class User extends SuperEntity {

private static final long serialVersionUID=1L;

    /**
     * 用户名
     */
    private String username;

    private String password;

    /**
     * 随机盐
     */
    private String salt;

    /**
     * 简介
     */
    private String phone;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 1-正常，0-锁定
     */
    private Boolean lockFlag;

    /**
     * 1-正常，0-删除
     */
    private Boolean delFlag;

    /**
     * 所属租户
     */
    private Long tenantId;


}
